<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      Enscript-1.6.6
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-9.1">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 9.1
      </h4>
      <h3>
        Chapter&nbsp;50.&nbsp;PostScript
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="a2ps.html" title="a2ps-4.14">Prev</a>
          <p>
            a2ps-4.14
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="psutils.html" title="PSUtils-p17">Next</a>
          <p>
            PSUtils-p17
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="ps.html" title=
          "Chapter&nbsp;50.&nbsp;PostScript">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="enscript" name="enscript"></a>Enscript-1.6.6
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to Enscript
        </h2>
        <p>
          <span class="application">Enscript</span> converts ASCII text files
          to PostScript, HTML, RTF, ANSI and overstrikes.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <div class="admon caution">
          <img alt="[Caution]" src="../images/caution.png" />
          <h3>
            Caution
          </h3>
          <p>
            <span class="application">Enscript</span> cannot convert UTF-8
            encoded text to PostScript. The issue is discussed in detail in
            the <a class="xref" href=
            "../introduction/locale-issues.html#locale-not-valid-option"
            title=
            "The Needed Encoding is Not a Valid Option in the Program">Needed
            Encoding Not a Valid Option</a> section of the <a class="xref"
            href="../introduction/locale-issues.html" title=
            "Locale Related Issues">Locale Related Issues</a> page. The
            solution is to use <a class="xref" href="paps.html" title=
            "paps-0.7.1">paps-0.7.1</a>, instead of <span class=
            "application">Enscript</span>, for converting UTF-8 encoded text
            to PostScript.
          </p>
        </div>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://ftp.gnu.org/gnu/enscript/enscript-1.6.6.tar.gz">https://ftp.gnu.org/gnu/enscript/enscript-1.6.6.tar.gz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download (FTP): <a class="ulink" href=
                "ftp://ftp.gnu.org/gnu/enscript/enscript-1.6.6.tar.gz">ftp://ftp.gnu.org/gnu/enscript/enscript-1.6.6.tar.gz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 3acc242b829adacabcaf28533f049afd
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 1.3 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 14 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 0.1 SBU
              </p>
            </li>
          </ul>
        </div>
        <h3>
          Enscript Dependencies
        </h3>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="texlive.html" title=
          "texlive-20190410-source">texlive-20190410</a> (or <a class="xref"
          href="tl-installer.html" title="install-tl-unx">install-tl-unx</a>)
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/Enscript">http://wiki.linuxfromscratch.org/blfs/wiki/Enscript</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of Enscript
        </h2>
        <p>
          Install <span class="application">Enscript</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">./configure --prefix=/usr              \
            --sysconfdir=/etc/enscript \
            --localstatedir=/var       \
            --with-media=Letter &amp;&amp;
make &amp;&amp;

pushd docs &amp;&amp;
  makeinfo --plaintext -o enscript.txt enscript.texi &amp;&amp;
popd</kbd>
</pre>
        <p>
          If you have <a class="xref" href="texlive.html" title=
          "texlive-20190410-source">texlive-20190410</a> installed, you can
          create Postscript and PDF documentation by issuing (does not
          support parallel make):
        </p>
        <pre class="userinput">
<kbd class="command">make -j1 -C docs ps pdf</kbd>
</pre>
        <p>
          To test the results, issue: <span class="command"><strong>make
          check</strong></span>.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install &amp;&amp;

install -v -m755 -d /usr/share/doc/enscript-1.6.6 &amp;&amp;
install -v -m644    README* *.txt docs/*.txt \
                    /usr/share/doc/enscript-1.6.6</kbd>
</pre>
        <p>
          If you built Postscript and PDF documentation, install it using the
          following command as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">install -v -m644 docs/*.{dvi,pdf,ps} \
                 /usr/share/doc/enscript-1.6.6</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <em class="parameter"><code>--sysconfdir=/etc/enscript</code></em>:
          This switch puts configuration data in <code class=
          "filename">/etc/enscript</code> instead of <code class=
          "filename">/usr/etc</code>.
        </p>
        <p>
          <em class="parameter"><code>--localstatedir=/var</code></em>: This
          switch sets the directory for runtime data to <code class=
          "filename">/var</code> instead of <code class=
          "filename">/usr/var</code>.
        </p>
        <p>
          <em class="parameter"><code>--with-media=Letter</code></em>: This
          switch sets the medium format to letter size instead of the A4
          default.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">diffpp, enscript, mkafmmap, over,
              sliceprint, and states</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">None</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">/etc/enscript,
              /usr/share/doc/enscript-1.6.6, and /usr/share/enscript</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="diffpp" name="diffpp"></a><span class=
                    "term"><span class=
                    "command"><strong>diffpp</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    converts <span class=
                    "command"><strong>diff</strong></span> output files to a
                    format suitable to be printed with <span class=
                    "command"><strong>enscript</strong></span>.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="enscript-prog" name=
                    "enscript-prog"></a><span class="term"><span class=
                    "command"><strong>enscript</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a filter, used primarily by printing scripts, that
                    converts ASCII text files to PostScript, HTML, RTF, ANSI
                    and overstrikes.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="mkafmmap" name="mkafmmap"></a><span class=
                    "term"><span class=
                    "command"><strong>mkafmmap</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    creates a font map from a given file.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="over" name="over"></a><span class=
                    "term"><span class=
                    "command"><strong>over</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a script which calls <span class=
                    "command"><strong>enscript</strong></span> and passes the
                    correct parameters to create overstriked fonts.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="sliceprint" name="sliceprint"></a><span class=
                    "term"><span class=
                    "command"><strong>sliceprint</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    slices documents with long lines.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="states" name="states"></a><span class=
                    "term"><span class=
                    "command"><strong>states</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is an <span class=
                    "command"><strong>awk</strong></span>-like text
                    processing tool with some state machine extensions. It is
                    designed for program source code highlighting and for
                    similar tasks where state information helps input
                    processing.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-19 16:31:22 -0800
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="a2ps.html" title="a2ps-4.14">Prev</a>
          <p>
            a2ps-4.14
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="psutils.html" title="PSUtils-p17">Next</a>
          <p>
            PSUtils-p17
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="ps.html" title=
          "Chapter&nbsp;50.&nbsp;PostScript">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
